package com.clouds.wms.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.clouds.wms.bean.Salmg;

import com.clouds.wms.dao.SalmgDao;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

@Service("salmgService")
public class SalmgServiceImpl implements SalmgService {
	@Resource(name="salmgDao")
	private SalmgDao salmgDao;

	@Override
	public PagesBean getSalmgList(String mgaa, String mgab, String mgac,String startMgad, String endMgad, int offset, int pageSize)	throws SysException {
		return salmgDao.getSalmgList(mgaa, mgab, mgac, startMgad, endMgad, offset, pageSize);
	}

	@Override
	public Salmg getSalmg(String mgaa,String mgab) throws SysException {
		return salmgDao.getSalmg(mgaa,mgab);
	}

	@Override
	public int saveSalmg(Salmg salmg) throws SysException {
		return salmgDao.saveSalmg(salmg);
	}
	
}
